package ru.ifmo.mlarinsky.classificator.map;

public abstract class MapPainter {
    public SomMap paintMap(SomMap somMap) {
        preprocessMap(somMap);

        for (MapNode node : somMap) {
            paintNode(node);
        }

        return somMap;
    }

    abstract void preprocessMap(SomMap map);
    abstract void paintNode(MapNode mapNode);
}
